<?php

namespace App\Admin\Controllers;

use App\Models\SwtEmployee;
use App\Models\SwtSupplier;
use Dcat\Admin\Http\Controllers\AuthController as BaseAuthController;

class ApiController extends BaseAuthController
{
    public function supplier(){
        return SwtSupplier::select('id','supplier_name')->get()->toArray();
    }

    public function employee(){
        return SwtEmployee::select('id','name')->where('type',1)->get()->toArray();
    }
}
